﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPModels.RepositoryManage
{
    /// <summary>
    /// 采购入库单实体类（严格匹配数据库表结构）
    /// </summary>
    public class Procurement:Entity<int>
    {
 

        /// <summary>
        /// 入库单编号（格式：BKxxx）
        /// </summary>
        public string LnboundCode { get; set; } = string.Empty;

        /// <summary>
        /// 入库单名称（描述入库内容）
        /// </summary>
        public string LnboundName { get; set; } = string.Empty;

        /// <summary>
        /// 实际入库日期
        /// </summary>
        public DateTime LnboundDate { get; set; }

        /// <summary>
        /// 关联的采购订单号（格式：P0xxx）
        /// </summary>
        public string ProcurementNumber { get; set; } = string.Empty;

        /// <summary>
        /// 供应商全称
        /// </summary>
        public string Vendor { get; set; } = string.Empty;

        /// <summary>
        /// 入库仓库名称（注意数据库字段拼写）
        /// </summary>
        public string LnboundWarehous { get; set; } = string.Empty;

        /// <summary>
        /// 单据状态（0:草稿 1:已提交 2:已完成）
        /// </summary>
        public int DocumentStatus { get; set; }

        /// <summary>
        /// 入库单总金额（建议后期转为decimal）
        /// </summary>
        public string TotalAmount { get; set; } = string.Empty;
    }
}
